package cn.jjxx.modules.sbfb.service.impl;

import java.util.List;
import java.util.Map;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.sbfb.mapper.EqEquipDescMapper;
import cn.jjxx.modules.sbfb.entity.EqEquipDesc;
import cn.jjxx.modules.sbfb.service.IEqEquipDescService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 设备描述
 * @Description: 设备描述
 * @author yw
 * @date 2021-12-23 16:17:39
 * @version V1.0   
 *
 */
@Transactional
@Service("eqEquipDescService")
public class EqEquipDescServiceImpl  extends CommonServiceImpl<EqEquipDescMapper,EqEquipDesc> implements  IEqEquipDescService {

	@Override
	public boolean insertBatch(List<EqEquipDesc> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<EqEquipDesc> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}

	public List<Map<String, Object>> selectHeat() {
		return baseMapper.selectHeat();
	}

	@Override
	public List<Map> selectEqeTypeCount(String companyid) {
		return baseMapper.selectEqeTypeCount(companyid);
	}
	@Override
	public List<Map> selectEqeSourceCount(String companyid) {
		return baseMapper.selectEqeSourceCount(companyid);
	}

	@Override
	public List<Map> selectEqeUseStatusCount(String companyid) {
		return baseMapper.selectEqeUseStatusCount(companyid);
	}

}
